﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            USBDisk usb = new USBDisk("惠普64G");
            usb.Info();
            usb.Read();
            usb.Write();

            Console.WriteLine();

            HDD hdd = new HDD("三星500G");
            hdd.Info();
            hdd.Read();
            hdd.Write();

            Console.WriteLine();

            Computer com = new Computer();
            com.begin();
            com.U1 = usb;
            com.U2 = hdd;
            com.ReadDate();
            com.WriteDate();
            com.end();


            Console.ReadKey();
        }
    }
}
